﻿using System.Collections.Generic;

//Create a class student with properties FirstName, LastName, FN, Tel, Email, Marks (a List<int>), GroupNumber. 
//Create a List<Student> with sample students. Select only the students that are from group number 2. Use LINQ query. 
//Order the students by FirstName.

namespace Student
{
    class Student
    {
        private string firstName;
        private string lastName;
        private string FN;
        private string tel;
        private string email;
        private List<int> marks;
        private Group group;
        private int groupNumber;

        public Student(string firstName, string lastName, string fN, string tel, string email, 
            List<int> marks, Group group,int groupNumber)
        {
            this.firstName = firstName;
            this.lastName = lastName;
            this.FN = fN;
            this.tel = tel;
            this.email = email;
            this.marks = marks;
            this.group = group;
            this.groupNumber = groupNumber;
        }

        public Group Group
        {
            get
            {
                return group;
            }
            set
            {
                group = value;
            }
        }

        public int GroupNumber
        {
            get
            {
                return groupNumber;
            }
            set
            {
                groupNumber = value;
            }
        }

        public string FirstName
        {
            get
            {
                return firstName;
            }
            set
            {
                firstName = value;
            }
        }

        public string LastName
        {
            get
            {
                return lastName;
            }
            set
            {
                lastName = value;
            }
        }

        public string PFN
        {
            get
            {
                return FN;
            }
            set
            {
                FN = value;
            }
        }

        public string Tel
        {
            get
            {
                return tel;
            }
            set
            {
                tel = value;
            }
        }

        public string Email
        {
            get
            {
                return email;
            }
            set
            {
                email = value;
            }
        }

        public List<int> Marks
        {
            get
            {
                return marks;
            }
            set
            {
                marks = value;
            }
        }
    }
}
